<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>学生动态</title>
		<link href="css/style.css" rel="stylesheet" type="text/css">
	</head>

	<body>

		<center>
			<h1>
				学生动态
			</h1>


			<table align="center" border="1">
				<tr>
					<th>
						时间
					</th>
										<th>
						学生名
					</th>
					<th>
						图片
					</th>
					<th>
						类型
					</th>
					<th>
						动态
					</th>

				</tr>

				<c:forEach var="list" items="${requestScope.list}" varStatus="index">
					<tr
						<c:if test="${index.index % 2 == 0 }"> style="background-color:rgb(219,241,212);"</c:if>>
						<td>
							${list.t_dynamic_addtime}
						</td>
												<td>
							${list.t_user_nick}
						</td>
						<td>
							<img width="100" height="100" src="${list.t_dynamic_pic}" alt="alt">
						</td>
						<td>
							<c:if test="${list.t_dynamic_dyntype == 0 }">其它</c:if>
							<c:if test="${list.t_dynamic_dyntype == 1 }">系统</c:if>
							<c:if test="${list.t_dynamic_dyntype == 2 }">播放视频</c:if>
							<c:if test="${list.t_dynamic_dyntype == 3 }">评论</c:if>
							<c:if test="${list.t_dynamic_dyntype == 4 }">下载</c:if>
						</td>
						<td>
							${list.t_dynamic_content}

						</td>
					</tr>
				</c:forEach>

			</table>
		</center>
	</body>
</html>
